home *** CD-ROM | disk | FTP | other *** search
/ Aminet 28 / Aminet 28 (1998)(GTI - Schatztruhe)[!][Dec 1998].iso / Aminet / dev / lang / fpc09905c.lha / fpc / inc / platform.inc < prev    next >
Text File  |  1998-09-21  |  4KB  |  132 lines

  1. {*****************************************************************************
  2.     $Id: platform.inc,v 1.2 1998/05/21 19:30:59 peter Exp $
  3.    Include file to sort out compilers/platforms/targets
  4.  
  5.    Copyright (c) 1997 Balazs Scheidler (bazsi@tas.vein.hu)
  6.  
  7.    This library is free software; you can redistribute it and/or
  8.    modify it under the terms of the GNU Library General Public
  9.    License as published by the Free Software Foundation; either
  10.    version 2 of the License, or (at your option) any later version.
  11.  
  12.    This library is distributed in the hope that it will be useful,
  13.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15.    Library General Public License for more details.
  16.  
  17.    You should have received a copy of the GNU Library General Public
  18.    License along with this library; if not, write to the Free
  19.    Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  
  21.  
  22.  *****************************************************************************
  23.  
  24.    This include file defines some conditional defines to allow us to select
  25.    the compiler/platform/target in a consequent way.
  26.  
  27.     OS_XXXX         The operating system used (XXXX may be one of:
  28.                        DOS, OS2, Linux, Windows)
  29.  
  30.  *****************************************************************************
  31.  
  32.    Changelog:
  33.  
  34.      Date       Version        Who        Comments
  35.      02 Jul 97  0.1            Bazsi      Initial implementation
  36.      28 Aug 97  0.2            LdeB       Fixed OS2 platform sort out
  37.      29 Aug 97  0.3            LdeB       Added assembler type change
  38.      29 Aug 97  0.4            LdeB       OS_DOS removed from Windows
  39.       5 May 98  0.5            CEC        FPC only support - fixed for Win32
  40.  *****************************************************************************
  41.  
  42.     This is how the IFDEF and UNDEF statements below should translate.
  43.  
  44.  
  45.  PLATFORM  SYSTEM    COMPILER  HANDLE SIZE      ASM          CPU
  46.  --------  ------    --------  -----------      ----         ---
  47.  
  48.  DOS      OS_DOS       FPC     16-bit           AT&T         CPU86
  49.  
  50.  WIN32    OS_WINDOWS   FPC     32-bit           AT&T         ----
  51.  
  52.  LINUX    OS_LINUX     FPC     32-bit           AT&T         ----
  53.  
  54.  OS2      OS_OS2       FPC     ?????            AT&T         CPU86
  55.  
  56.  ATARI    OS_ATARI     FPC     16-bit           Internal     CPU68
  57.  
  58.  MACOS    OS_MAC       FPC     ?????            Internal     CPU68
  59.  
  60.  AMIGA    OS_AMIGA     FPC     32-bit           Internal     CPU68
  61.  
  62.  *****************************************************************************}
  63.  
  64. {$IFDEF FPC}
  65.  
  66. {$IFDEF GO32V1}
  67. {$I386_ATT}
  68. {$IFNDEF CPU86}
  69.   {$DEFINE CPU86}
  70. {$ENDIF}
  71. {$DEFINE OS_DOS}
  72. {$ENDIF}
  73.  
  74. {$IFDEF GO32V2}
  75. {$I386_ATT}
  76. {$IFNDEF CPU86}
  77.   {$DEFINE CPU86}
  78. {$ENDIF}
  79. {$DEFINE OS_DOS}
  80. {$ENDIF}
  81.  
  82. {$IFDEF LINUX}
  83. {$DEFINE OS_LINUX}
  84. {$ENDIF}
  85.  
  86. {$IFDEF WIN32}
  87. {$DEFINE OS_WINDOWS}
  88. {$ENDIF}
  89.  
  90. {$IFDEF OS2}
  91. {$I386_ATT}
  92. {$IFNDEF CPU86}
  93.   {$DEFINE CPU86}
  94. {$ENDIF}
  95. {$DEFINE OS_OS2}
  96. {$ENDIF}
  97.  
  98. {$IFDEF AMIGA}
  99. {$DEFINE OS_AMIGA}
  100. {$IFNDEF CPU68}
  101.   {$DEFINE CPU68}
  102. {$ENDIF}
  103. {$ENDIF}
  104.  
  105. {$IFDEF ATARI}
  106. {$DEFINE OS_ATARI}
  107. {$IFNDEF CPU68}
  108.   {$DEFINE CPU68}
  109. {$ENDIF}
  110. {$ENDIF}
  111.  
  112. {$IFDEF MACOS}
  113. {$DEFINE OS_MAC}
  114. {$IFNDEF CPU68}
  115.   {$DEFINE CPU68}
  116. {$ENDIF}
  117. {$ENDIF}
  118.  
  119. {$ELSE}
  120. Requires Free Pascal (FPK) v0.9.2 or higher
  121. {$ENDIF}
  122.  
  123. {
  124.   $Log: platform.inc,v $
  125.   Revision 1.2  1998/05/21 19:30:59  peter
  126.     * objects compiles for linux
  127.     + assign(pchar), assign(char), rename(pchar), rename(char)
  128.     * fixed read_text_as_array
  129.     + read_text_as_pchar which was not yet in the rtl
  130.  
  131. }
  132.